'use strict';

function compute_average(collection) {
  let result=collection.reduce(function(item1,item2){
    return item1+item2;
  });
  result=result/collection.length;
  console.log(result);
  return result;
}

module.exports = compute_average;
compute_average([1, 3, 5, 98, 67, 453]);

